<?php

namespace App\Admin\Repositories\Mental;

use App\Models\Mental\Type as Model;
use Dcat\Admin\Repositories\EloquentRepository;

class Type extends EloquentRepository
{
    /**
     * Model.
     *
     * @var string
     */
    protected $eloquentClass = Model::class;

    public function getOptions(){
         $list=\App\Models\Mental\Type::all();
         $data=[];
         foreach ($list as $item){
            $data[$item->id]=$item->name;
         }
         return $data;
    }


}
